<?php $this->_extends('_layouts/bootstrap_layout'); ?>
<?php $this->_block('contents'); ?>
<script>
$(function(){
	$("#search").click(function(){
		var shop_id = $('.span2').val();
		var id = $('.input-medium').val();
		if (!shop_id)
		{
			alert("请选择店铺");
			return false;
		}
		if(!id)
		{
			alert("请填写查询id");
			return false;
		}
		windows.location.href="<?=url('Default::Public/GetAmazonFeedSubmissionResult')?>&shop_id=" + shop_id + "&id=" + id;
	});
});
</script>
<div class="container">
<form>
<?include(Q::ini('custom_system/elements_dir') . 'searchform_element.php');?>
  <fieldset>
    <legend><?=$title?></legend>
    <label>选择店铺</label>
    <label>
		<select class="span2" name="shop_id">
		<option value="">请选择..</option>
		<?foreach ($shop as $s):?>
		<option value="<?=$s['id']?>"><?=$s['name']?></option>
		<?endforeach;?>
		</select>
	</label>
    <label>查询ID</label>
	<label><input type="text" name="id" class="input-medium" /></label>
    <button type="submit" class="btn" id="search">查询</button>
  </fieldset>
</form>
</div>
<?php $this->_endblock();?>